package com.kehutong.payfees.app;

import java.util.List;

import org.coraframework.inject.Inject;
import org.coraframework.json.JSONObject;
import org.coraframework.mvc.MvcAction;
import org.coraframework.mvc.http.ReqMapping;
import org.coraframework.mvc.http.result.Result;
import org.coraframework.orm.jdbc.JdbcSession;

import com.kehutong.payfees.entity.ChargeFeeType;

@MvcAction
@ReqMapping("/kht-bin/charge/feetype")
public class ChargeFeeTypeAction {
	
	@Inject
	private JdbcSession jdbcSession;


    @ReqMapping("/list")
    public Object list(JSONObject jsonObject) {
        List<ChargeFeeType> types = jdbcSession.findArray(ChargeFeeType.class)
                .exe();

        return Result.success(types);
    }
}

